<?php
Globals::requireClass('Table');

class LogTable extends Table
{
	public static $defaultConfig = array(
		'table' => 'admin_log'
	);
	
	public function validate(array &$data)
	{
		if ($this->mode === parent::MODE_ADD)
			$data['time'] = time();
		
		return true;
	}
}

Config::extend('LogTable', 'Table');
